package com.wl.common.security.register;

import org.springframework.stereotype.Component;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

/**
 * @author: wanglin
 * @date: 2024-03-08 周五
 * @Version: 1.0
 * @Description: 系统资源
 */
@Component
public class SecurityMetadataSource {

    /**
     * 系统资源，map<url,role></url,role>
     */
    private ConcurrentMap<String, String> resourceMap;

    public SecurityMetadataSource() {
        this.resourceMap = new ConcurrentHashMap<>();
    }

    public ConcurrentMap<String, String> getResourceMap() {
        return resourceMap;
    }

    public void setResourceMap(ConcurrentMap<String, String> resourceMap) {
        this.resourceMap = resourceMap;
    }
}
